jQuery(document).ready(function(){
    //重写checkCustomize函数
    checkCustomize = function (){
        //当前时间-休假开始时间<48小时，否则不允许提交表单
        var timeStr = jQuery("#field5804").val()+" "+jQuery("#field5805").val();
        var jssj = new Date(timeStr.replace(/-/g, '/'));
        var now = new Date();
        var xs = getHour(now,jssj);
        if(parseInt(xs)>48){
            alert("休假流程不允许在休假结束后超过48小时后提交！");
            return false;
        }
        return true;
    }
});

function getHour(s1,s2) {
    var ms = Math.abs(s1.getTime() - s2.getTime());
    return ms / 1000 / 60 / 60;
}
